body {
    margin: 0;
    padding: 0;
    height: 100vb;
    background-color: var(--dark-mode-body-bg,#F2F2F2);
    color: var(--dark-mode-text-color, #333);
    /* display: flex;
    justify-content: center;
    align-items: center; */
    /* background: linear-gradient(125deg, #73A9AD, #90C8AC, #C4DFAA, #F5F0BB); */
    /* background-image: url(./img/01.jpg); */
}

/* 自定义黑暗模式特性 */
body.dark-mode {
    --dark-mode-header-bg: #424242;
    --dark-mode-header-border: #fff;
    --dark-mode-text-color: #9e9e9e;
    --dark-mode-body-bg: #111418;
    --dark-mode-toggle-translatex: 25px;
}
.top {
    width: 100%;
    height: 70px;
    /* var(--dark-mode-header-bg,#E6E6E6) 存在自定义属性时使用自定义属性 */
    background-color: var(--dark-mode-header-bg,#E6E6E6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom-left-radius: 30px;  /* 左下角变圆 */
    border-bottom-right-radius: 30px; /* 右下角变圆 */

    @media (max-width: 768px) {
      height: 50px;
    }

    .left {
        width: 300px;
        height: 100%;
        /* background-color: aqua; */
        line-height: 70px;
        text-align: center;
        font-size: 35px;
        color: #333;
        font-family: 华文行楷;

        @media (max-width: 768px) {
          width: 200px;
          font-size: 20px;
          line-height: 60px;
        }
    }

    .switch {
        display: flex;
        align-items: center;
        margin-left: auto; /* 右对齐 */
        margin-right: 10px;
        gap: 5px; /* 两个元素之间的间隔 */

        span {
            font-size: 20px;
        }

        .toggle {
            background-color: black;
            height: 100%;
            width: 50px;
            padding: 5px;
            border-radius: 100px;
            cursor: pointer;
        }

        .circle {
            width: 15px;
            height: 15px;
            border-radius: 100px;
            background-color: #fff;
            transform: translateX(var(--dark-mode-toggle-translatex, 0));
            transition: transform 0.3s ease;
            pointer-events: none; /* 鼠标无法点击 */
        }
    }

    .right {
    display: flex;
    width: 250px;
    height: 100%;
    background-color: var(--dark-mode-header-bg, #A4A4A4);
    border-bottom-right-radius: 30px; /* 右下角变圆 */

    @media (max-width: 768px) {
      width: 150px;
    }

    .right-left {
        width: 50%;
        height: 100%;
        text-align: center;
        line-height: 70px;
        font-size: 20px;
        color: #333;
        font-family: 华文行楷;

        @media (max-width: 768px) {
          line-height: 60px;
        }
    }
    .right-left:hover {
        cursor: pointer;
        background-color: #BDBDBD;
    }
    
    .right-rigth {
        width: 50%;
        height: 100%;
        text-align: center;
        line-height: 70px;
        font-size: 20px;
        color: #333;
        font-family: 华文行楷;
        border-bottom-right-radius: 30px; /* 右下角变圆 */

        @media (max-width: 768px) {
          line-height: 60px;
        }
    }
    .right-rigth:hover {
        cursor: pointer;
        background-color: #BDBDBD;
    }
}
}
a {
    text-decoration: none;
}
.config {
    width: 80%;
    max-width: 500px;
    height: 330px;
    margin: 200px auto;
    /* position: fixed; */
    /* background-color: red; */
    /* border: 2px solid #ccc; */
    
    .config-on {
        width: 100%;
        height: 55px;
        background-color: #79A5D6;
        text-align: center;
        line-height: 55px;
        color: #fff;
    }
    
    .config-in {
        width: 100%;
        height: 275px;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        
        p {
            margin: 0;
        }
        
        .form-control {
            width: 100%;
            max-width: 300px;
            height: 30px;
            margin-top: 30px;
        }

        .check {
            width: 100%;
            max-width: 300px;
            height: 30px;
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
            line-height: 30px;
            
            a {
                color: black;
                font-size: 14px;
                position: relative;
                text-decoration: none;
            }
            
            a::after {
                content: '';
                width: 100%;
                height: 1px;
                /* currentColor 获取父级元素的颜色 */
                background-color: currentColor;
                position: absolute;
                left: 0;
                bottom: 0;
                /* 用于在水平方向上缩放元素。值为0意味着元素在水平方向上被缩放到0，即完全不可见 */
                transform: scaleX(0);
                /* 定义中心点 */
                transform-origin: right;
                transition: transform .5s ease-out;
            }
            
            a:hover::after {
                transform: scaleX(1);
                transform-origin: left;
            }
        }
        
        .config-an {
            width: 100%;
            max-width: 300px;
            height: 35px;
            text-align: center;
            line-height: 35px;
            margin-top: 23px;
            background-color: #79A5D6;
            /* background-color: #66b1ff; */
            transition: .5s;
        }
        
        .config-an:hover {
            background-color: #66b1ff;
            cursor: pointer;
        }
        
        .config-yuan {
            width: 60px;
            height: 60px;
            border-radius: 100%;
            line-height: 60px;
            text-align: center;
            margin: 0 auto;
            margin-top: 10px;
            background-color: #66b1ff;
            transition: .7s;
        }
    }

    .motai {
        width: 150px;
        height: 150px;
        /* background-color: red; */
        position: absolute;
        top: 42%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 10%;
        /* 半透明背景 */
        background-color: rgba(255, 255, 255, .8); 

        .motai-x {
            width: 30px;
            height: 30px;
            border-radius: 100%;
            background-color: #eee;
            position: absolute;
            top: 0;
            right: 0;
            text-align: center;
            line-height: 30px;
            z-index: 1;
            cursor: pointer;
        }
        
        .motai-x:hover {
            background-color: #e4e4e4;
        }

        .motai-d {
            position: absolute;
            width: 100%;
            height: 100%;
            /* background-color: black; */
            border-radius: 10%;

            img {
                width: 100%;
                height: 100%;
                border-radius: 10%;
            }
        }
    }
}

.container {
    width: 80%;  /* 设置宽度为80% */
    margin: 80px auto;  /* 水平居中 */
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-around; */
    /* margin-top: 80px; */
  }
  .carda {
    width: 42%;
    margin: 20px;
    padding: 20px;
    border: 1px solid var(--dark-mode-header-border, black);
    box-shadow: 7px -7px 7px 0px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    @media (max-width: 768px) {
        width: 100%;
    }
  }
  .carda:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    cursor: pointer;
  }
  .carda img {
    width: 100%;
    height: 300px;

    @media (max-width: 768px) {
      height: 150px;
    }
  }
  .carda h3 {
    margin: 10px 0;
  }
  .carda em {
      font-size: 10px;
  }
  .carda p {
    margin: 5px 0;
  }

.right-left, .right-rigth {
    transition: background-color 0.5s ease;
}

.container, .config {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.container.hide {
    opacity: 0;
    transform: translateX(100%);
}

.config.show {
    opacity: 1;
    transform: translateX(0);
}

.config.hide {
    opacity: 0;
    transform: translateX(-100%);
}
/* 媒体查询，针对不同屏幕尺寸进行调整 */
/* 表示当视口宽度小于或等于768像素时，这段代码中定义的样式就会生效 */
@media (max-width: 768px) {
    .config {
        margin-top: 100px;
    }
    
    .config-on {
        height: 45px;
        line-height: 45px;
    }
    
    .config-in {
        height: 280px;
    }
    
    .form-control {
        height: 25px;
        margin-top: 20px;
    }
    
    .check {
        height: 25px;
        margin-top: 15px;
        line-height: 25px;
    }
    
    .config-an {
        height: 30px;
        line-height: 30px;
        margin-top: 20px;
    }
}